package com.atguigu.aopanno;

import com.atguigu.aopannotation.AspectAnnotation;
import org.springframework.stereotype.Component;

//被增强的类
@Component
public class User {

    public void add() {
        //测试异常通知
//        int i = 10 / 0;
        System.out.println("add........");
    }

    public void addPoint() {
        System.out.println("addPoint........");
    }

    @AspectAnnotation(isStart = true)
    public void addPointAnnotation() {
        System.out.println("addPointAnnotation........");
    }

}
